from django.conf.urls.defaults import *

urlpatterns = patterns(
    'picture',
    (r'^s?/?$', 'views.home'),
    (r'^/(\d+)/?$', 'views.slide'),
    (r'^/(\d+)_?(l|m|t)?\.jpg', 'views.serve'), # large, thumbnail, original, etc.
    (r'^/(\d+)/delete', 'views.delete'),
    (r'^/(\d+)/edit', 'views.edit'),     # to edit picture description
    (r'^/(\d+)/update', 'views.update'), # to update picture, by re-upload
    (r'^/(\d+)/comment', 'views.comment'),
    (r'^/rehab', 'views.rehab'),        # cron job. picture data rehab
    (r'^/(\d{4})/(\d{1,2})/(\d{1,2})/(.*)', 'views.slug')
    )
